package com.tuanzi.loan.business.repository.receipt.product;

import java.util.List;

import com.tuanzi.loan.business.entity.receipt.product.ReceiptProductCondition;
import com.tuanzi.loan.core.repository.JPAAuditRepository;
import com.tuanzi.server.loan_base.constant.LoanReceiptProductStatus;

/**
 * 贷款产品配置信息repository
 */
public interface ReceiptProductConditionRepository extends JPAAuditRepository<ReceiptProductCondition, Long> {
	/**
	 * 根据产品id查找产品配置信息
	 * 
	 * @param productId
	 *            产品id
	 * @return ProductCondition
	 */
	ReceiptProductCondition findReceiptProductConditionByProductIdAndStatusIn(Long productId, List<LoanReceiptProductStatus> status);

	List<ReceiptProductCondition> findReceiptProductConditionsByProductIdAndStatusIn(long productId, List<LoanReceiptProductStatus> statusList);

}
